/***********************************************************************
 * Module:  KnowledgeBaseController.java
 * Author:  Administrator
 * Purpose: Defines the Class KnowledgeBaseController
 ***********************************************************************/

package ishitong.deviceManagement.controller;

import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/** @pdOid 0bb056bf-b5a4-4808-8948-792aaca653bc */
@Controller
public class KnowledgeBaseController extends ishitong.common.controller.ActionController {
   /** @pdOid ce3e58df-65c5-48a5-af97-6f3ef0613c26 */
   private static final String KB_SCH = "/deviceManagement/knowledgeBase/knowledgeBaseSearch";
   /** @pdOid 8b8b9be3-e4d6-48fa-892a-47b17de2b134 */
   private static final String KB_SCH_LST = "/deviceManagement/knowledgeBase/knowledgeBaseSearchList";
   /** @pdOid 379f8f64-3444-403a-bffa-e4110a49cadd */
   private static final String KB_VIW = "/deviceManagement/knowledgeBase/knowledgeBaseView";
   /** @pdOid b68e47b9-33ab-4f03-b6b6-c7272ea25c57 */
   private static final String KB_EDT = "/deviceManagement/knowledgeBase/knowledgeBaseEdit";
   
   /** 查询知识库信息页面初始化
    * 
    * @param request
    * @exception Exception
    * @pdOid 6c013f66-a53f-44eb-ad23-fd845342ba36 */
   @RequestMapping(value = "/showKnowledgeBaseSearch.do")
   public ModelAndView handleShowKnowledgeBaseSearch(HttpServletRequest request) throws Exception {
   	try {
   		Map<String, Object> model = new HashMap<>();
   		return new ModelAndView(KB_SCH, model);
   	} catch (Exception e) {
   		e.printStackTrace();
   	}
   	return null;
   }
   
   /** 查询知识库信息
    * 
    * @param request
    * @pdOid 06ddabe8-ba13-4287-800f-fbc93941d66e */
   @RequestMapping(value = "/ajaxKnowledgeBaseSearchList.do", method = RequestMethod.POST)
   public ModelAndView handleAjaxFindKnowledgeBaseSearchList(HttpServletRequest request) {
   	try {
   		Map<String, Object> model = new HashMap<>();
   		return new ModelAndView(KB_SCH_LST, model);
   	} catch (Exception e) {
   		e.printStackTrace();
   	}
   	return null;
   }
   
   /** 维护知识库信息页面初始化
    * 
    * @param request 
    * @param response 
    * @param knowledgeBaseId
    * @exception Exception
    * @pdOid ad242fd6-2fa2-4990-b4d2-2268ba754ea5 */
   @RequestMapping(value = "/ajaxShowKnowledgeBaseEdit.do")
   public ModelAndView handleAjaxShowKnowledgeBaseEdit(HttpServletRequest request, HttpServletResponse response, String knowledgeBaseId) throws Exception {
   	try {
   		Map<String, Object> model = new HashMap<>();
   		return new ModelAndView(KB_EDT, model);
   	} catch (Exception e) {
   		e.printStackTrace();
   	}
   	return null;
   }
   
   /** 查看知识库信息页面初始化
    * 
    * @param request 
    * @param response
    * @exception Exception
    * @pdOid 9525f0b3-2b37-4258-9af9-e0fbc9d3634a */
   @RequestMapping(value = "/ajaxShowKnowledgeBaseView.do", method = RequestMethod.POST)
   public ModelAndView handleAjaxShowKnowledgeBaseView(HttpServletRequest request, HttpServletResponse response) throws Exception {
   	try {
   		Map<String, Object> model = new HashMap<>();
   		return new ModelAndView(KB_VIW, model);
   	} catch (Exception e) {
   		e.printStackTrace();
   	}
   	return null;
   }
   
   /** 保存知识库信息
    * 
    * @param request 
    * @param response
    * @exception Exception
    * @pdOid 5ff53872-6eda-4865-9fec-530f61760dab */
   @RequestMapping(value = "/ajaxSaveKnowledgeBase.do", method = RequestMethod.POST)
   public void handleAjaxSaveKnowledgeBase(HttpServletRequest request, HttpServletResponse response) throws Exception {
   	try {
   
   	} catch (Exception e) {
   		e.printStackTrace();
   	}
   }
   
   /** 删除知识库信息
    * 
    * @param request 
    * @param knowledgeBaseIds 
    * @param response
    * @exception Exception
    * @pdOid 137d62d9-27ea-4f4d-8af8-329b07902052 */
   @RequestMapping(value = "/ajaxDeleteKnowledgeBaseByIds.do", method = RequestMethod.POST)
   public void handleAjaxDeleteKnowledgeBaseByIds(HttpServletRequest request, String knowledgeBaseIds, HttpServletResponse response) throws Exception {
   	try {
   
   	} catch (Exception e) {
   		e.printStackTrace();
   	}
   }

}